<?php
/*
 * 点播注入测试
 * Created on 2013-8-10
 *
 */
ini_set('display_errors',1);
include_once dirname(dirname(__FILE__)).'/mgtv_init.php';
include_once dirname(dirname(__FILE__)).'/fjyd/init.php';
$action = $_GET['action'];
if($action=='add'){
	$series_info = array(
		'nns_id'=>'999',
		'nns_name'=>'电视剧',
		'nns_alias_name'=>'电视剧别名',
		'nns_show_time' => '20110303',
		'nns_all_index' => 2,
		'nns_summary'=>'简单的描述',
		'nns_kind' => '人文',
		'nns_keyword'=>'关键字',
		'nns_task_id' => 'task_id_123',
	);
	
	c2_task_model::add_series($vod_info); 	
}else if($action=='delete'){
	/*
	$db = nn_get_db(NL_DB_READ);
	$sql = "select * from nns_vod";
	$vods = nl_db_get_all($sql,$db);
	$ids = array();
	foreach($vods as $item){
		$ids[] = $item['nns_id'];
	}		
	c2_task_model::delete_series_by_ids(array('nns_ids'=>$ids));
	*/ 
	c2_task_model::delete_series_by_ids(array('nns_ids'=>array('3ca092fc3d1ba6c8a497a2b3a4fdff7f','6cdc48139126cf59d123e2b5dc7b1f5d')));
}
echo 'ok';
?>
